import http from '@/server'

export async function getVersionList(params: Version.VersionListParams) {
    return http.request({
      url: '/version/search',
      method: 'post',
      headers: {
        'Content-Type': 'application/json', 
      },
      data: params, 
    });
}

export async function getSingleVersion(params: Version.VersionListParams) {
    return http.request({
      url: '/version/info',
      method: 'post',
      headers: {
        'Content-Type': 'application/json', 
      },
      data: params, 
    });
}

export async function updateVersion(params: Version.VersionListParams) {
    return http.request({
      url: '/version/update',
      method: 'post',
      headers: {
        'Content-Type': 'application/json', 
      },
      data: params, 
    });
}

export async function addVersion(params: Version.VersionEntity) {
    return http.request({
      url: '/version/add',
      method: 'post',
      headers: {
        'Content-Type': 'application/json', 
      },
      data: params, 
    });
}

export async function deleteVersion(params: Version.VersionEntity) {
    return http.request({
      url: '/version/del',
      method: 'post',
      headers: {
        'Content-Type': 'application/json', 
      },
      data: params, 
    });
}

export async function getStaffList(params: Version.VersionEntity) {
    return http.request({
      url: '/account/search',
      method: 'post',
      headers: {
        'Content-Type': 'application/json', 
      },
      data: params, 
    });
}

